package com.kelvin.paopao.adapter;

import android.content.Context;
import android.widget.ImageView;

import com.baidu.mapapi.search.sug.SuggestionResult;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.kelvin.kelvinlib.imageloader.GlideUtil;
import com.kelvin.paopao.R;
import com.kelvin.paopao.api.responseBean.DatePersonModel;

/**
 * Created by Administrator on 2017/5/11.
 */

public class EditLocationAdapter extends BaseQuickAdapter<SuggestionResult.SuggestionInfo, BaseViewHolder> {
    private Context context;

    public EditLocationAdapter(Context context) {
        super(R.layout.recyclerview_edit_location_item);
        this.context = context;
    }

    @Override
    protected void convert(BaseViewHolder helper, SuggestionResult.SuggestionInfo item) {
        helper.setText(R.id.tv_name, item.key);
        helper.setText(R.id.tv_attrbute, item.city + " " + item.district);
    }
}
